package com.thinkgem.jeesite.test.http.web;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.thinkgem.jeesite.common.utils.JSONUtil;
import com.thinkgem.jeesite.common.utils.ResponseUtils;
import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite.test.http.entity.HttpUser1;
import com.thinkgem.jeesite.test.http.service.HttpUserService;

@Controller
@RequestMapping(value = "test/http")
public class HttpUserController extends BaseController{

	@Autowired
	private HttpUserService httpUserService;
	
	@RequestMapping(value="/findList")
	public void findList(String id,String remarks,HttpServletRequest request,HttpServletResponse response) {
		List<HttpUser1> hus = httpUserService.getList(id, remarks);
		ResponseUtils.renderJson(response, JSONUtil.toJSONString(hus));
	}
}
